/* 
 * File:   main.cpp
 * Author: Muhammad Anis
 *
 * Created on November 1, 2012, 5:09 PM
 */

#include <cstdlib>
#include "CommandManager.h"

using namespace std;

/*
 * 
 */
int main(int argc, char** argv) {

    
    CalendarManager cal_manager;    
    CommandManager cm(cal_manager);
    
    Command c1("a",&Calendar::PrintInfo);
   // Command c2;
    
    //cm.AddCommand(c1);
    cm.AddCommand(c1);
    
    
    Calendar cal_1;    
    cm.GetCalendarManager().AddCalendar(cal_1);
    Calendar cal_2 = cal_1;
    cal_2.SetEntryNo(100);
    cm.GetCalendarManager().AddCalendar(cal_2);
    long id = cal_1.GetEntryNo();
    cm.Execute(100,"a",argv);
    
    return 0;
}

